﻿using System;
using MoonSharp.Interpreter;

// Token: 0x020002AA RID: 682
public class PlayerRaygunHitEvent : IEvent
{
	// Token: 0x06000F2A RID: 3882 RVA: 0x00073CA3 File Offset: 0x00071EA3
	public PlayerRaygunHitEvent(EntityBase target, float magnitude, int firingMode, float chargeValue)
	{
		this.target = target;
		this.magnitude = magnitude;
		this.firingMode = firingMode;
		this.chargeValue = chargeValue;
		this.code = EventCode.OnPlayerRaygunHit;
	}

	// Token: 0x06000F2B RID: 3883 RVA: 0x00073CD4 File Offset: 0x00071ED4
	public override DynValue GetLuaData()
	{
		if (this.data == null)
		{
			this.data = DynValue.NewPrimeTable();
			this.data.Table.Set("target", DynValue.FromObject(null, (!this.target) ? null : this.target.GetLuaEntity()));
			this.data.Table.Set("magnitude", DynValue.FromObject(null, this.magnitude));
			this.data.Table.Set("firingMode", DynValue.FromObject(null, this.firingMode));
			this.data.Table.Set("chargeValue", DynValue.FromObject(null, this.chargeValue));
		}
		return this.data;
	}

	// Token: 0x04001423 RID: 5155
	public EntityBase target;

	// Token: 0x04001424 RID: 5156
	public float magnitude;

	// Token: 0x04001425 RID: 5157
	public int firingMode;

	// Token: 0x04001426 RID: 5158
	public float chargeValue;
}
